<template>
  
    <div>
        <!-- 请假资源页面 -->
        <van-row>

            <van-col span="24"> <heardes/> </van-col>
            <van-col span="4"> <left/> </van-col>

            <van-col span="10">
                    <table>
                        <tr v-for="i in list" :key="i.id">
                            <td>{{i.name}}</td>
                            <td>
                                <router-link :to="{'name':'setparams',query:{'id':i.id}}">配置参数</router-link>
                            </td>
                        </tr>
                    </table>

            </van-col>

        </van-row>


    </div>

</template>

<script>
import axios from '../../http/axios'
import Heardes from '../comm/heardes.vue'
import Left from '../comm/left.vue'
export default {
        components:{Heardes,Left},
        data(){
            return{

                list:[]
            }
        },
        methods:{

            getworkf(){
                axios('worklist','get').then(res=>{
                    this.list = res.list
                })
            }
        },


        mounted(){
            this.getworkf()
        }


}



</script>


Left<style
Heardes>

</style>